package xyhoo.springframework.core.io;

import java.io.IOException;
import java.net.URL;

/**
 * 资源描述符
 */
public interface Resource extends InputStreamSource{

    String getDescription();

    default boolean isOpen(){
        return false;
    }

    boolean exists();

    URL getURL() throws IOException;

    Resource createRelative(String relativePath) throws IOException;

}
